import Vue from 'vue'
import Router from 'vue-router'
import HomePage from '@/page/HomePage/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
    },
    {
      path: '/bookDetail',
      name: 'bookDetail',
      component: () => import('@/page/bookInfo/index.vue')
    }, {
      path: '/bookRead',
      name: 'bookRead',
      component: () => import('@/page/readPage/index.vue')
    }
  ]
})
